package com.ipzoe.app.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ipzoe.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 会员充值套餐对象 mem_member_recharge_package
 * 
 * @author eric
 * @date 2020-08-20
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
public class MemberRechargePackageDTO implements Serializable {

private static final long serialVersionUID=1L;


    /** $column.columnComment */
    private Long id;

    /** 套餐名称 */
    @Excel(name = "套餐名称")
    private String name;

    /** 套餐价格 */
    @Excel(name = "套餐价格")
    private Integer price;

    /** 有效单位数量 */
    @Excel(name = "有效单位数量")
    private Integer effectiveNum;

    /** 有效单位 */
    @Excel(name = "有效单位")
    private Integer effectiveUnit;

    private String effectiveUnitStr;

    /** 套餐有效期 */
    @Excel(name = "套餐有效期" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expiryDay;

    /** 销量 */
    @Excel(name = "销量")
    private Integer soldNum;

    /** $column.columnComment */
    private Date createTime;

    /** $column.columnComment */
    private String createBy;

    /** $column.columnComment */
    private Date updateTime;

    /** $column.columnComment */
    private String updateBy;

    /** $column.columnComment */
    private Integer delFlag;
}
